﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using App.Model.Enum;
using SqlSugar;
namespace App.Model
{
    public class Menu : BaseId

    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public string ParentId { get; set; }
        public string Sort { get; set; }
        /// <summary>
        /// 菜单类型
        /// </summary>
        public EnumMenuType Type { get; set; }
        /// <summary>
        /// 菜单地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateAt { get; set; }
        /// <summary>
        /// 子菜单
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public List<Menu> Children { get; set; }
    }
}
